namespace web {
    export class layout {
        static HTMLayoutProcND(hwnd, msg, wParam, lParam) {
            this.dll.HTMLayoutProcND(hwnd, msg, wParam, lParam, ffi.new("bool[1]"));
        }
        static HTMLayoutLoadHtmlEx(hwnd, data, size, baseUrl) {
            this.dll.HTMLayoutLoadHtmlEx(hwnd, data, size, baseUrl);
        }
    }
    export namespace layout {
        ffi.cdef(
            `
                int HTMLayoutLoadHtmlEx(int hwnd,str data,int size,str baseUrl);
                int HTMLayoutProcND(int hwnd,int msg,int wParam,int lParam,bool* pbHandled);
            `
        )
        export let dll = ffi.load("HTMLayout.dll");

    }

}